﻿/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
*******************************************************************************/

KindEditor.plugin('anchorteachingaim', function (K) {
    var self = this,
        ebookId = jQuery('#EbookId').val(),
        name = 'anchorteachingaim';
    //跳转到学习目标列表页的方法
    self.clickToolbar(name, function () {
        initTeachingAimList();
    });
});

//跳转到学习目标列表页
function initTeachingAimList() {
        var ebookId = $("#EbookId").val();
        var secId = $("#SecId").val();
        window.open('/EbookEdit/TeachingAimList?ebookId=' + ebookId + '&chapterId=' + secId);
}